@if (count($forum_topics))
<div class="itemList">
    @if($forum_topics->count())
        @foreach($forum_topics as $forum_topic)
            <div class="item">
                <a href="{{ route('users.show',[$forum_topic->user->id]) }}"><img class="headImg" src="{{ $forum_topic->user->avatar }}" alt="$forum_topic->user->name"></a>
                <div class="word">
                    <a href="{{ $forum_topic->link() }}" title=" {{$forum_topic->title}}">{{ $forum_topic->title }}</a>
                    <div class="litInfo">
                        <p>
                            <i class="glyphicon glyphicon-folder-open" aria-hidden="true"></i>
                            <a href="{{ route('categories.show', $forum_topic->forumCategory->id) }}" title="{{ $forum_topic->forumCategory->name }}">
                                &nbsp;{{ $forum_topic->forumCategory->name }}
                           </a>
                        </p>
                        <p>作者: {{ $forum_topic->user->name }}</p>
                        <p><i class="glyphicon glyphicon-time" aria-hidden="true"></i>{{ $forum_topic->updated_at->diffForHumans() }}</p>
                    </div>
                </div>
                <span><i>{{ $forum_topic->reply_count }}</i><br>回复</span>
            </div>
        @endforeach
    @endif
</div>

@else
    <div class="empty-block">暂无数据 ~_~ </div>
@endif